<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>订单详情</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="/static/css/font.css">
        <link rel="stylesheet" href="/static/css/xadmin.css">
		<link rel="stylesheet" href="/static/css/table.css">
        <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="/static/js/xadmin.js"></script>
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
        <div class="x-nav">
          <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
						<!-- <div class="layui-card-header">
							<button class="layui-btn" onclick="javascript:alert('短信通知记录');">短信通知记录</button>
						</div> -->
                        <div class="layui-card-body">
                            <div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>订单信息</li>
							  </ul>
							  <div class="layui-tab-content">
								 <span>订单日期：{$order.addtime|date="Y-m-d H:i:s",###}</span>
								 <span style="margin-left:30px;">订单编号：{$order.order_sn}</span>
								 <span style="margin-left:30px;">购买门店：{$order.shop_name}</span>
								 <span style="margin-left:30px;">营业员：{$order.clerk}</span>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>客户信息</li>
							  </ul>
							  <div class="layui-tab-content">
								 <span>客户姓名：某某某</span>
								 <span style="margin-left:30px;">客户称呼：{$order.nkname}</span>
								 <span style="margin-left:30px;">联系方式：{$order.phone}</span>
								 <span style="margin-left:30px;">备用联系方式：{$order.spare_phone}</span>
								 <span style="margin-left:30px;">客户编号：{$order.user_sn}</span>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>购买产品</li>
							  </ul>
							  <div class="layui-tab-content">
									<table class="layui-table layui-form">
									  <thead>
										<tr>
										  <th>序号</th>
										  <th>产品编码</th>
										  <th>产品名称</th>
										  <th>IEMI</th>
										  <th>S/N</th>
										  <th>合同编号</th>
										  <th>数量</th>
										  <th>单位</th>
                                          <th>价格（元）</th>
										  <th>售货价类型</th>
										  <th>状态</th>
									  </thead>
									  <tbody>
										{volist name="ordergoods" id="vo" key="i"}
                                        <tr>
										  <td>{$i}</td>
										  <td>{$vo.goods_sn}</td>
										  <td>{$vo.goods_name}</td>
										  <td>{$vo.imei}</td>
										  <td>{$vo.sn}</td>
										  <td>{$vo.contract_sn}</td>
										  <td>{$vo.number}</td>
										  <td>{$vo.unit}</td>
                                          {if condition="$vo.price_type eq '0'"}
                                          <td>{$vo.selling_price}</td>
										  <td>零售价</td>
                                          {else /}
                                          <td>{$vo.trade_price}</td>
										  <td>批发价</td>
                                          {/if}
										  <td>
                                            {switch name="$vo.is_show"}
                                                {case value="0"}正常{/case}
                                                {case value="1"}退货{/case}
                                                {case value="2"}召回{/case}
                                            {/switch}
                                          </td>
										</tr>
										{/volist}
									  </tbody>
									</table>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>优惠信息</li>
							  </ul>
							  <div class="layui-tab-content">
                                {if condition="$orderactivity eq []"}
                                <span>无</span>
                                {else /}
								 <span>{$orderactivity.act_name}</span>
                                 {/if}
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>订单备注</li>
							  </ul>
							  <div class="layui-tab-content">
								 {if condition="$order.remarks eq ''"}
                                <span>无</span>
                                {else /}
                                 <span>订单备注：{$order.remarks}</span>
                                 {/if}
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>订单金额</li>
                                {if condition="$order.state eq '0'"}
								<li><span class="span_border" onclick="xadmin.open('增加付款金额','{:url('shop/order/addmoney',['id'=>$order.order_id])}',1000,600)">增加付款金额</span></li>
								{/if}
                                <li><span class="span_border"onclick="xadmin.open('付款记录','{:url('shop/order/moneylog',['id'=>$order.order_id])}',1000,600)">付款记录</span></li>
							  </ul>
							  <div class="layui-tab-content">
								 <span>订单金额（元）：{$order.order_money}</span>
								 <span style="margin-left:30px;">实收金额（元）：{$order.actual_money}</span>
								 <span style="margin-left:30px;">待付款金额（元）：{$order.stay_money}</span>
							  </div>
							</div>
                        </div>
                    </div>
                </div>
            </div>
        </div> 
    </body>
</html>